package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 盘点明细
 * </p>
 *
 * @author LEO
 * @since 2020-09-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_difference_item")
@ApiModel(value="DifferenceItem对象", description="盘点明细")
public class DifferenceItem extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "所属机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "差异单号")
    @TableField("difference_code")
    private String differenceCode;

    @ApiModelProperty(value = "盘点登记编码")
    @TableField("counting_register_code")
    private String countingRegisterCode;

    @ApiModelProperty(value = "库存标识")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "货主编码")
    @TableField("shipment_code")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商")
    @TableField("shipment_name")
    private String shipmentName;

    @ApiModelProperty(value = "商品编码")
    @TableField("goods_code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    @TableField("good_code")
    private String goodCode;

    @ApiModelProperty(value = "商品条码")
    @TableField("goods_bar_code")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品名称")
    @TableField("goods_name")
    private String goodsName;


    @ApiModelProperty(value = "商品规格")
    @TableField("spec")
    private String spec;

    @ApiModelProperty(value = "单位标识")
    @TableField("goods_unit")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    @TableField("goods_unit_name")
    private String goodsUnitName;

    @ApiModelProperty(value = "库存数量")
    @TableField("inventory_quantity")
    private BigDecimal inventoryQuantity;

    @ApiModelProperty(value = "差异数量")
    @TableField("difference_quantity")
    private BigDecimal differenceQuantity;

    @ApiModelProperty(value = "盘点数量")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "库位")
    @TableField("location")
    private String location;

    @ApiModelProperty(value = "生产日期")
    @TableField("gmt_manufacture")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @TableField("gmt_expire")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @TableField("gmt_stock")
    private LocalDateTime gmtStock;


    @ApiModelProperty(value = "供应商")
    @TableField("supplier")
    private String supplier;

    @ApiModelProperty(value = "批次号")
    @TableField("lot")
    private String lot;

    @ApiModelProperty(value = "收货批次")
    @TableField("receive_lot")
    private String receiveLot;


    @ApiModelProperty(value = "序列号")
    @TableField("serial_number")
    private String serialNumber;

    @TableField("extend_one")
    private String extendOne;

    @TableField("extend_two")
    private String extendTwo;

    @TableField("extend_three")
    private BigDecimal extendThree;

    @TableField("extend_four")
    private BigDecimal extendFour;

    @TableField("extend_five")
    private LocalDateTime extendFive;

    @TableField("extend_six")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "锁定状态")
    @TableField("is_lock")
    private Integer isLock;

    @ApiModelProperty(value = "库存状态")
    @TableField("inventory_status")
    private String inventoryStatus;

    @ApiModelProperty(value = "类型，0盘盈，1盘亏")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "库区")
    @TableField("warehouse_space_code")
    private String warehouseSpaceCode;

    @TableField("warehouse_space_name")
    private String warehouseSpaceName;

    @ApiModelProperty(value = "库存状态")
    @TableField("goods_Status")
    private String goodsStatus;

    @ApiModelProperty(value = "库存状态名称")
    @TableField("goods_status_name")
    private String goodsStatusName;


    @ApiModelProperty(value = "容器号")
    @TableField("container_bar_code")
    private String containerBarCode;
}
